package com.chaosj.skill.prometheus.properties

import java.time.Duration

/**
 * @Description:
 * @author caoyangjie
 * @date 2020年01月2020/1/23日 12:05
 * @Copyright: © 赢时胜
 */
class PrometheusProperties {

    /**
     * Whether to enable publishing descriptions as part of the scrape payload to
     * Prometheus. Turn this off to minimize the amount of data sent on each scrape.
     */
    private boolean descriptions = true

    /**
     * Step size (i.e. reporting frequency) to use.
     */
    private Duration step = Duration.ofMinutes(1)

    boolean isDescriptions() {
        return this.descriptions
    }

    void setDescriptions(boolean descriptions) {
        this.descriptions = descriptions
    }

    Duration getStep() {
        return this.step
    }

    void setStep(Duration step) {
        this.step = step
    }

}